how do vaccines work in the body